<?php
class PanelController extends Controller
{
  public function actionIndex()
  {
    $this->render('index');
  }
 
  public function actionLoadPanel(){
    // $this->renderPartial('/jwidget/panel/textPanel');
    
    	//print_r($_REQUEST['widget']);
      $this->renderPartial('/jwidget/panel/panel');

  }
  public function actionLoadText(){
  	// print_r("test");
    // print_r($_REQUEST['widget']);
	$this->renderPartial('/jwidget/panel/textPanel', $_REQUEST['widget']);

  }
  public function actionLoadPage(){
    //print_r($_REQUEST['options']);
	$this->renderPartial('/jwidget/panel/pagePanel', $_REQUEST['widget']);
  }

  public function actionLoadWeibo(){
    //print_r($_REQUEST['options']);
	$this->renderPartial('/jwidget/panel/weiboPanel', $_REQUEST['widget']);
  }
  
  public function actionLoadTest(){
    print_r($_REQUEST['widgets']);

  }
	
  public function actionSave(){
    
  }
  public function actionClose(){
    
  }
}